package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

import es.us.isa.jdbl.domain.ResearchLine;
import es.us.isa.jdbl.domain.ToolDeveloped;

@Name("toolDevelopedHome")
public class ToolDevelopedHome extends EntityHome<ToolDeveloped>{

	public void setToolDevelopedNid(Integer id) {
		setId(id);
	}

	public Integer getToolDevelopedNid() {
		return (Integer) getId();
	}

	@Override
	protected ToolDeveloped createInstance() {
		ToolDeveloped toolDeveloped = new ToolDeveloped();
		return toolDeveloped;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public ToolDeveloped getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}
}
